package com.travel.modules.asset.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.travel.modules.asset.dao.StrategyDao;
import com.travel.modules.asset.entity.Strategy;
import com.travel.modules.asset.service.StrategyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service("strategyService")
public class StrategyServiceImpl extends ServiceImpl<StrategyDao, Strategy> implements StrategyService {
    @Resource
    private StrategyDao strategyDao;

    @Override
    public List<Strategy> ftQueryStrategies(String[] keywords) {
        return strategyDao.ftQueryStrategies(keywords);
    }

    @Override
    public List<Strategy> getAllStrategy(Map<String, String> param) {
        return strategyDao.getAllStrategy(param);
    }

    @Override
    public Strategy getOneStrategy(String strategyId) {
        return strategyDao.getOneStrategy(strategyId);
    }
}
